From bdfd5fc7d18ac6e6d83e675bfb1ddce59ec144a6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 15 Jul 2008 18:00:13 +0100 Subject: [PATCH] fs-backend: fix ioctl(BLKGETSIZE) call on 64bit Signed-off-by: Samuel Thibault --- tools/fs-back/fs-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fs-back/fs-ops.c b/tools/fs-back/fs-ops.c index de6bcd6b53..4246759f5a 100644 --- a/tools/fs-back/fs-ops.c +++ b/tools/fs-back/fs-ops.c @@ -240,7 +240,7 @@ void dispatch_stat(struct mount *mount, struct fsif_request *req) buf->stat_gid = stat.st_gid; #ifdef BLKGETSIZE if (S_ISBLK(stat.st_mode)) { - int sectors; + unsigned long sectors; if (ioctl(fd, BLKGETSIZE, §ors)) { perror("getting device size\n"); buf->stat_size = 0; -- 2.30.2